package com.four.basicinfo.service.impl;

import com.four.basicinfo.dao.CareerDao;
import com.four.basicinfo.entity.Career;
import com.four.basicinfo.service.CareerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CareerServiceImpl implements CareerService {
    @Autowired
    CareerDao careerMapper;
    /**
     * 查询亲属从事相关职业
     *
     * @param id 亲属从事相关职业主键
     * @return 亲属从事相关职业
     */
    @Override
    public Career selectCareerById(Long id)
    {
        return careerMapper.selectCareerById(id);
    }
    /**
     * 新增亲属从事相关职业
     *
     * @param career 亲属从事相关职业
     * @return 结果
     */
    @Override
    public int insertCareer(Career career)
    {
        return careerMapper.insertCareer(career);
    }

    /**
     * 修改亲属从事相关职业
     *
     * @param career 亲属从事相关职业
     * @return 结果
     */
    @Override
    public int updateCareer(Career career)
    {
        return careerMapper.updateCareer(career);
    }
    /**
     * 删除亲属从事相关职业信息
     *
     * @param id 亲属从事相关职业主键
     * @return 结果
     */
    @Override
    public int deleteCareerById(Long id)
    {
        return careerMapper.deleteCareerById(id);
    }
}
